//全名小说开启VIP
var body = $response.body;
try {
    if ($request.url.indexOf("my.arstsgc.cn/v2/center/index.api") > -1 && !!body) {
        console.log("🍎全名小说脚本开始！");
        console.log("🍎服务器返回Body内容:" + body);

        var obj = JSON.parse(body);
        //set json object values
        obj.data.ad.ad_style = "1";
        obj.data.ad.ad_state = "1";
        obj.data.ad.ad_end_datetime = "2038-01-01";
        obj.data.ad.ad_tips = "已开通";

        var newBody = JSON.stringify(obj);

        console.log("🍎修改后Body内容:" + newBody);

        $done({
            body: newBody
        });
    } else {
        $done({});
    }
} catch (e) {
    console.log("try错误:" + e);
    $done({});
}
console.log("🍎全名小说脚本执行完成！");